package cate.game.pvp.guildwar.data.msg;

import cate.game.pvp.guildwar.data.GuildWarPt;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("公会战单个据点的更新")
public class GWPtInnerUpdate {
    @NoteField("据点ID")
    public int ptId;

    @NoteField("当前获得的星数")
    public int star;

    public static GWPtInnerUpdate of(GuildWarPt pt) {
        GWPtInnerUpdate update = new GWPtInnerUpdate();
        update.ptId = pt.ptId;
        update.star = pt.star;
        return update;
    }
}
